<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>6</title>
</head>
<body>
<script>
    //运用continue跳过当前的循环,计算1,2,3,4,5这一组数据,但要求只计算1,2,3,5的和
    var sum=0;
    for (let i = 1; i <= 5; i++) {
        if (i==4){
            continue;
        }
        sum+=i;
    }
    console.log("1,2,3,5的和为:"+sum);
</script>
</body>
</html>